﻿@{
    ViewBag.Title = "ChangePassword";
}
<script>
    function ValidateChangePass() {
        if ($('#iptOldPass').val().length == 0) {
            alert('Enter your Old Password');
            $('#iptOldPass').focus();
            return;
        }
        if ($('#iptNewPass').val().length == 0) {
            alert('Enter your New Password');
            $('#iptNewPass').focus();
            return;
        }
        document.forms['frmChangePassWord'].submit();
    }
</script>
<form id="frmChangePassWord" method="post" action="/Member/ChangePass">
    <table width="100%" border="0" cellspacing="0" cellpadding="1">
        <tr>
            <td align="left">
                <table width="100%" cellspacing="2" cellpadding="5" align="center" border="0">
                    <tr align="center" bgcolor="#525E54">
                        <td height="25" colspan="2">
                            <font face="arial" size="2" color="#FFFFFF"><strong>Change Password </strong></font>
                        </td>
                    </tr>
                    <tr><td colspan="2" style="height: 20px;">&nbsp;</td></tr>                   
                    <tr valign="top" bgcolor="#FFFFFF">
                        <td style="width: 20%">&nbsp;&nbsp;&nbsp;&nbsp;Old Password&nbsp;<span style="color: Red"><b>*</b></span></td>
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="password" name="oldpass" style="width: 60%" id="iptOldPass"/></td>
                    </tr>
                    <tr valign="top" bgcolor="#FFFFFF">
                        <td bgcolor="#FFFFFF">&nbsp;&nbsp;&nbsp;&nbsp;New Password&nbsp;<span style="color: Red"><b>*</b></span></td>
                        <td bgcolor="#FFFFFF">&nbsp;&nbsp;&nbsp;&nbsp;<input type="password" style="width: 60%" name="newpass" id="iptNewPass"/></td>
                    </tr>
                    <tr valign="top" bgcolor="#FFFFFF">
                        <td>&nbsp;</td>
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="submitChangePass" value="Change Password" onclick="ValidateChangePass()"/></td>
                    </tr>
                    <tr valign="top" bgcolor="#FFFFFF">
                        <td colspan="2"> &nbsp;</td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>

